home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Games / reve / color.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-03  |  2.6 KB  |  61 lines

  1.  
  2. /*  @(#)color.h 1.8 91/11/07
  3.  *
  4.  *  Colormap definitions used by reve.
  5.  *
  6.  *  Copyright (C) 1990, 1991 - Rich Burridge & Yves Gallot.
  7.  *  All rights reserved.
  8.  *
  9.  *  Permission is granted to copy this source, for redistribution
  10.  *  in source form only, provided the news headers in "substantially
  11.  *  unaltered format" are retained, the introductory messages are not
  12.  *  removed, and no monies are exchanged.
  13.  *
  14.  *  Permission is also granted to copy this source, without the
  15.  *  news headers, for the purposes of making an executable copy by
  16.  *  means of compilation, provided that such copy will not be used
  17.  *  for the purposes of competition in any othello tournaments, without
  18.  *  prior permission from the authors.
  19.  *
  20.  *  No responsibility is taken for any errors or inaccuracies inherent
  21.  *  either to the comments or the code of this program, but if reported
  22.  *  (see README file), then an attempt will be made to fix them.
  23.  */
  24.  
  25. #define  REVE_COLOR          "revecolor"
  26. #define  REVE_COLORSIZE      16
  27. #define  REVE_USEDCOLORSIZE  10
  28.  
  29. #define  C_WHITE    0
  30. #define  C_BLACK    1
  31. #define  C_PANEL    2
  32. #define  C_SQUARE   3
  33. #define  C_BORDER   4
  34. #define  C_GRID     5
  35. #define  C_TEXT     6
  36. #define  C_ITEMS    7
  37. #define  C_BSTONE   8
  38. #define  C_WSTONE   9
  39.  
  40. /*  With the SunView version, on O/S releases earlier than 4.1.1, the last
  41.  *  entry is the color of all borders (tool, buttons, and stones).
  42.  */
  43.  
  44. #define reve_colorsetup(r, g, b) \
  45.         (r)[C_WHITE]  = 255 ;  (g)[C_WHITE]  = 255 ;  (b)[C_WHITE]  = 255 ; \
  46.         (r)[C_BLACK]  = 0   ;  (g)[C_BLACK]  = 0   ;  (b)[C_BLACK]  = 0   ; \
  47.         (r)[C_PANEL]  = 255 ;  (g)[C_PANEL]  = 240 ;  (b)[C_PANEL]  = 220 ; \
  48.         (r)[C_SQUARE] = 200 ;  (g)[C_SQUARE] = 150 ;  (b)[C_SQUARE] = 100 ; \
  49.         (r)[C_BORDER] = 185 ;  (g)[C_BORDER] = 145 ;  (b)[C_BORDER] = 100 ; \
  50.         (r)[C_GRID]   = 200 ;  (g)[C_GRID]   = 200 ;  (b)[C_GRID]   = 200 ; \
  51.         (r)[C_TEXT]   = 0   ;  (g)[C_TEXT]   = 0   ;  (b)[C_TEXT]   = 0   ; \
  52.         (r)[C_ITEMS]  = 200 ;  (g)[C_ITEMS]  = 200 ;  (b)[C_ITEMS]  = 200 ; \
  53.         (r)[C_BSTONE] = 0   ;  (g)[C_BSTONE] = 0   ;  (b)[C_BSTONE] = 0   ; \
  54.         (r)[C_WSTONE] = 255 ;  (g)[C_WSTONE] = 255 ;  (b)[C_WSTONE] = 255 ; \
  55.         (r)[10]          = 0   ;  (g)[10]         = 0   ;  (b)[10]        = 0      ; \
  56.         (r)[11]          = 0   ;  (g)[11]         = 0   ;  (b)[11]        = 0   ; \
  57.         (r)[12]          = 0   ;  (g)[12]         = 0   ;  (b)[12]        = 0   ; \
  58.         (r)[13]          = 0   ;  (g)[13]         = 0   ;  (b)[13]        = 0   ; \
  59.         (r)[14]          = 0   ;  (g)[14]         = 0   ;  (b)[14]        = 0   ; \
  60.         (r)[15]          = 0   ;  (g)[15]         = 0   ;  (b)[15]        = 0   ;
  61.